﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Data {
    /// <summary>
    /// Class to set and get user login data
    /// </summary>
    public class UserLogin_Data {
        private string username, password;

        public UserLogin_Data() { }

        [DataObjectField(true, true, false)]
        public string UserName {
            get { return username; }
            set { username = value; }
        }

        [DataObjectField(false, false, true)]
        public string Password {
            get { return password; }
            set { password = value; }
        }

        public override string ToString() {
            return UserName + "" + Password;
        }

        public UserLogin_Data(string thisname, string thispassword) {
            this.UserName = thisname;
            this.Password = thispassword;
        }
    }

    /// <summary>
    /// Class to set and get admin login data
    /// </summary>
    public class AdminLogin_Data {
        private string username, password;

        public AdminLogin_Data() { }

        [DataObjectField(true, true, false)]
        public string UserName {
            get { return username; }
            set { username = value; }
        }

        [DataObjectField(false, false, true)]
        public string Password {
            get { return password; }
            set { password = value; }
        }

        public override string ToString() {
            return UserName + "" + Password;
        }

        public AdminLogin_Data(string thisname, string thispassword) {
            this.UserName = thisname;
            this.Password = thispassword;
        }
    }
}
